package com.zxy.supplier_system.server.repository

import com.zxy.supplier_system.server.entity.MarketSettlementPlanResult
import com.zxy.supplier_system.server.entity.SystemService
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import org.springframework.data.jpa.repository.JpaRepository

interface MarketSettlementPlanResultRepository: JpaRepository<MarketSettlementPlanResult, Int> {
    fun findByMarket_SystemServiceAndMarket_IdAndYearAndMonth(
        market_systemService: SystemService,
        market_id: Int,
        year: Int,
        month: Int
    ) : MarketSettlementPlanResult?

    fun findAllByMarket_SystemServiceAndMarket_Id(market_systemService: SystemService, market_id: Int,pageable: Pageable): Page<MarketSettlementPlanResult>

}
